<template>
  <view class="list-container">
    <view 
      class="list-item"
      v-for="(item, index) in pointsList"
      :key="index"
    >
      <view class="item-left">
        <view class="item-title">{{item.title}}</view>
        <view class="item-date">{{item.date}}</view>
      </view>
      <view class="item-value" :class="{ 'value-add': item.type != 'guoqi' }">
      {{item.value}}
      </view>
    </view>
  </view>
</template>

<script>
  export default{
   props:{
     pointsList:{
       type:Array,
       require:true
     }
   }
    
    
  }
  
</script>

<style scoped>
.list-container {
  padding: 20rpx 30rpx;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 30rpx;
  margin-bottom: 20rpx;
  border-radius: 12rpx;
}

.item-title {
  font-size: 28rpx;
  color: #333;
  margin-bottom: 10rpx;
}

.item-date {
  font-size: 24rpx;
  color: #999;
}

.item-value {
  font-size: 32rpx;
  color: #333;
  font-weight: 500;
}

.value-add {
  color: #ff4444;
}
</style>